<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 5/29/24
 * Time: 11:25 AM
 */


namespace App\Http\Controllers\Admin;

use App\Services\StatisticsService;
use Illuminate\Http\Request;
use App\Http\Controllers\ResourceController;

class StatisticsController extends ResourceController
{
    protected $service;

    public function __construct(StatisticsService $service)
    {
        $this->service = $service;
    }


    /**
     * 获取用户排行榜
     *
     * @param Request $request
     * @return mixed
     */
    public function getUserRankings(Request $request)
    {
        return $this->responseWithSuccess($this->service->getUserRankings($request->post()));
    }


    public function getCustomerData(Request $request)
    {

    }
}
